<!DOCTYPE HTML>
<html class="center-html">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>个人中心</title>
    <link rel="stylesheet" type="text/css" href="css/aui.css" />
		<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body class="center-body">
    <div class="site-name">
      <p>北京114预约挂号平台</p>
    </div>

    <div class="center-header" id="my_div_1">

    </div>

    <div class="center-nav">
      <a class="center-item" href="user.html">
        <img src="images/user.png" alt="">
        <span>就诊人</span>
      </a>
      <a class="center-item" href="orders.html">
        <img src="images/order.png" alt="">
        <span>挂号订单</span>
      </a>
    </div>

    <div class="center-list">
      <a class="center-sub" href="phone.html">
        <div class="center-icon">
          <img src="images/phone.png" alt="" class="icon-phone">
        </div>
        <div class="center-title">
          <p>修改登录手机号</p>
          <span></span>
        </div>
        <i class="aui-iconfont aui-icon-right"></i>
      </a>

      <a class="center-sub" href="weixin.html">
        <div class="center-icon">
          <img src="images/weixin.png" alt="" class="icon-weixin">
        </div>
        <div class="center-title">
          <p>绑定微信</p>
          <span>未绑定</span>
        </div>
        <i class="aui-iconfont aui-icon-right"></i>
      </a>

      <a class="center-sub" href="more.html">
        <div class="center-icon">
          <img src="images/more.png" alt="" class="icon-more">
        </div>
        <div class="center-title">
          <p>更多</p>
          <span></span>
        </div>
        <i class="aui-iconfont aui-icon-right"></i>
      </a>
    </div>

    <div class="center-exit">
      <a href="login.html">退出登录</a>
    </div>
</body>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/tagetUrl.js"></script>
<script src="js/commons.js"></script>
<script type="text/javascript">
    $(function () {
        var openid = localStorage.getItem("openid");
        $.ajax({
            type: "post",
            url: "http://guowang.nat300.top/wechat114/wxUser/getUser",
            data:{"openid":openid},
            async:false,
            dataType: "json",
            success: function (data) {
                var num = data.data.mobileNum;
                if (num == null){
                    num = "";
                }
                var str = "<div class=\"center-account\">\n" +
                    "        <div class=\"center-name\">\n" +
                    "          <h4>"+data.data.nickname+"</h4>\n" +
                    "          <p>"+num+"</p>\n" +
                    "        </div>\n" +
                    "        <div class=\"center-status\">\n" +
                    "          <p>\n" +
                    "            <img src=\"images/safe.png\" alt=\"\">\n" +
                    "            <span>已认证</span>\n" +
                    "          </p>\n" +
                    "          <i class=\"aui-iconfont aui-icon-right\"></i>\n" +
                    "        </div>\n" +
                    "      </div>";
                $("#my_div_1").html(str)
            }
        })
    })

</script>
</html>
